import itertools

letters = ['a', 'b', 'c']

permutations = itertools.permutations(letters, 2)

for permutation in permutations:
    print(permutation)